package com.course.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

/*
@author By 林中小鸟
@package  com.self.introduction.entity
@create 2021 - 09 - 2021\9\28 0028
@QQ: 357182695
@Em: themooncss@gmail.com
*/
@TableName("articles")
@Data
public class Articles {

    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(type = IdType.INPUT)
    private Long id;
    @TableField(value = "title",condition = SqlCondition.LIKE)
    private String title;
    @TableField(value = "img")
    private String img;
    @TableField(value = "description")
    private String description;
    @TableField(value = "category_id")
    @ToString.Exclude
    private Long categoryId;
    @TableField(value = "content")
    private String content;
    @TableField(value = "create_time")
    private String createTime;
    @TableField(value = "update_time")
    private String updateTime;
    @TableField(value = "istop")
    private Boolean istop;
    @TableField(value = "isdel")
    private Boolean isdel;
    @TableField(value = "ishot")
    private Boolean ishot;
    @TableField(exist = false)
    private Category category;

}
